<!--Sign In-->
<div class="span5 offset1">
	
    <div class="box corner-all">
        <div class="box-header grd-teal color-white corner-top">
            <span>Acessar minha conta</span>
        </div>
        <div class="box-body bg-white">
            <?php
				$attributes = array('method' => 'POST');
				echo form_open('login/validar', $attributes);
			?>
                <div class="control-group <?php if(form_error('lemail')){echo 'error';} ?>">
                    <label class="control-label">Email</label>
                    <div class="controls">
                    	<?php 
                    	echo form_input(array(
                    			'name'        => 'lemail',
                    			'id'			=> 'inputEmail',
                    			'value'       => set_value("lemail",""),
                    			'maxlength'   => '70',
                    			'placeholder'   => 'Email',
								'class' => 'input-block-level'
                    	));
                    	?>
                    </div>
                    <?php if(form_error('lemail')){ ?>
                    <span class="help-inline">
                    	<?php echo form_error('lemail');?>
                    </span>
                    <?php }?>
                </div>
                <div class="control-group <?php if(form_error('lsenha') || isset($error_email)){echo 'error';} ?>">
                    <label class="control-label">Senha</label>
                    <div class="controls">
                    	<?php 
							echo form_password(array(
						      'name'        => 'lsenha',
						      'id'			=> 'inputSenha',
						      'value'       => set_value("lsenha",""),
						      'maxlength'   => '70',
						      'placeholder'   => 'Senha',
							  'class' => 'input-block-level'
						    ));
				    	?>
                    </div>
                    <?php if(form_error('lsenha') || isset($error_email) ){ ?>
                    <span class="help-inline">
                    	<?php echo form_error('lsenha');?>
                    	<?php if(isset($error_email)) echo $error_email;?>
                    </span>
                    <?php }?>
                </div>
                <div class="control-group">
                    <label class="checkbox">
                        <input type="checkbox" data-form="uniform" name="remember_me" id="remember_me_yes" value="yes"> Manter-me conectado
                    </label>
                </div>
                <div class="form-actions">
                    <input type="submit" class="btn btn-block btn-large btn-primary" value="Entrar" />
                    <p class="recover-account"><a href="#modal-recover" class="link" data-toggle="modal">Recuperar minha senha</a></p>
                </div>
            <?php echo form_close(); ?>
        </div>
    </div>
    
</div><!--/Sign In-->